<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
*	convertToOptions -  for creating the selecton options for console and genre
*/
function convertToOptions($targetData)
{
	$optData = array();
	foreach($targetData as $data)
	{
		$optData[$data['id']] = $data['name'];
	}
	return $optData;
}

// ------------------------------------------------------------------------

?>